<!DOCTYPE html>
<html>
{% load staticfiles %}
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <title>    {% block titile %}首页{% endblock %}</title>

    <link href="https://cdn.bootcss.com/element-ui/2.0.11/theme-chalk/index.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="{% static 'css/reset.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/animate.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">
    {% block custom_css %} {% endblock %}
    <script src="{% static 'js/jquery.min.js' %}" type="text/javascript"></script>
    <script src="{% static 'js/jquery-migrate-1.2.1.min.js' %}" type="text/javascript"></script>

</head>


<section class="headerwrap ">
    <header>
        <div class=" header">
            <div class="top">
                {% if request.user.is_authenticated %}
                    <div class="wp">
                        <div class="fl"><p>服务电话：<input readonly unselectable="on"
                                                       style="border: 0px;color: white; background: #3a3a3a" id="number"
                                                       value="Loading..."></p></div>
                        <div class="personal">

                            <dl class="user fr">
                                <dd>{{ user.username }}<img class="down fr" src="{% static 'images/top_down.png' %}"/>
                                </dd>
                                <dt><img width="20" height="20" src="{{ MEDIA_URL }}{{ user.image }}"/></dt>
                            </dl>
                            <div class="userdetail">
                                <dl>
                                    <dt><img width="80" height="80" src="{{ MEDIA_URL }}{{ user.image }}"/></dt>
                                    <dd>
                                        <h2>{{ user.nick_name }}</h2>
                                        <p>{{ user.username }}</p>
                                    </dd>
                                </dl>
                                <div class="btn">
                                    <a class="personcenter fl" href="{% url 'userinfo' %}">进入个人中心</a>
                                    <a class="fr" href="{% url 'logout' %}">退出</a>
                                </div>
                            </div>
                        </div>

                        <div class="msg-num"
                             style="background: url({% static 'images/laba.png' %}) no-repeat 0 center;"><input readonly
                                                                                                                unselectable="on"
                                                                                                                style="border: 0px;color: white; background: #3a3a3a"
                                                                                                                id="notice"
                                                                                                                value="Loading...">
                        </div>

                    </div>
                {% else %}
                    <div class="wp">
                        <div class="fl"><p>服务电话：<input readonly unselectable="on"
                                                       style="border: 0px;color: white; background: #3a3a3a" id="number"
                                                       value="Loading..."></p></div>
                        <!--登录后跳转-->


                        <a style="color:white" class="fr registerbtn" href="{% url "register" %}">注册</a>
                        <a style="color:white" class="fr loginbtn"
                           href="{% url 'login' %}?next={{ request.path }}">登录</a>


                    </div>
                {% endif %}
            </div>

            <div class="middle">
                <div class="wp">
                    <a href="{% url 'index' %}"><img class="fl" src="{% static 'images/logo.jpg' %}"/></a>
                    <div class="searchbox fr">
                        <div class="selectContainer fl">
                            <span class="selectOption" id="jsSelectOption" data-value="course"
                                  style="text-align: center">搜索</span>
                        </div>
                        <input id="search_keywords" class="fl" type="text" value="" placeholder="请输入搜索内容"/>
                        <img class="search_btn fr" id="jsSearchBtn" src="{% static 'images/search_btn.png' %}"/>
                    </div>
                </div>
            </div>


            <nav>
                <div class="nav">
                    <div class="wp">
                        <ul>
                            <li class="active"><a href="{% url 'index' %}">首页</a></li>
                            <li class="active"><a href="{% url 'webapp:market' %}">行情数据<img class="hot"
                                                                                            src="{% static 'images/nav_hot.png' %}"></a>
                            </li>
                            <li class="active"><a href="{% url 'webapp:map' %}">走势图</a></li>
                            </li>
                            <li class="active"><a href="">策略分析</a></li>
                        </ul>
                    </div>
                </div>
            </nav>

        </div>
    </header>
</section>

<!--crumbs start-->
{% block custom_bread %}
    <section>
        <div class="wp">
            <ul class="crumbs">
                <li><a href="{% url 'index' %}">首页</a>></li>
            </ul>
        </div>
    </section>
{% endblock %}

{% block content %}
{% endblock %}

{% block footer %}
<footer>
    {% for Peugeot in all_Peugeot %}
        <div class="footer">

            <div class="wp">
                <ul class="cont">
                    <li class="logo"><a href="{% url 'index' %}"><img src="{{ MEDIA_URL }}{{ Peugeot.logo }}"/></a></li>
                    <li class="code"><img src="{{ MEDIA_URL }}{{ Peugeot.Wechat_image }}"/>
                        <p class="center">扫描关注微信公众号</p></li>
                    <li class="third"><img class="fl" src="{% static 'images/tell.png' %}"/>
                        <p class="tell">{{ Peugeot.official_number }}</p>
                        <p class="time">周一至周日 9:00-18:00</p></li>
                </ul>

            </div>
            <p class="line"></p>
            <div class="wp clear">
                <span class="fl">{{ Peugeot.copyright }}</span>
                <span class="fr">Copyright© 2018 ICP备案证书号：<a style="color:#717171 " href="http://www.miitbeian.gov.cn/">备案号{{ Peugeot.file_num }}</a></span>
            </div>
        </div>
    {% endfor %}
</footer>
{% endblock %}


{% block section %}
<section>
    <ul class="sidebar">
        <li class="qq">
            <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2023525077&site=qq&menu=yes"></a>
        </li>
        <li class="totop"></li>
    </ul>
</section>
{% endblock %}

<script src="{% static 'js/selectUi.js' %}" type='text/javascript'></script>
<script src="{% static 'js/deco-common.js' %}" type='text/javascript'></script>
<script type="text/javascript" src="{% static 'js/plugins/laydate/laydate.js' %}"></script>
<script src="{% static 'js/plugins/layer/layer.js' %}"></script>
{% block custom_js %}{% endblock %}
<script src="{% static 'js/plugins/queryCity/js/public.js' %}" type="text/javascript"></script>
<script src="{% static 'js/unslider.js' %}" type="text/javascript"></script>
<script src="{% static 'js/plugins/jquery.scrollLoading.js' %}" type="text/javascript"></script>
<script src="{% static 'js/deco-common.js' %}" type="text/javascript"></script>
<script src="{% static 'js/ajax_data.js' %}" type="text/javascript"></script>
</body>
</html>
